package api

import request "gitee.com/changeden/volcengine-livesaas-request-go"

type GetActivityBasicConfigRequest struct {
	ActivityId *int64 `json:"ActivityId"`
}
type GetActivityBasicConfigResponse struct {
	CoverImageUrlDefault      string        `json:"CoverImageUrlDefault" gorm:"column:CoverImageUrlDefault"`
	IsLanguageEnable          int32         `json:"IsLanguageEnable" gorm:"column:IsLanguageEnable"`
	AccountId                 int64         `json:"AccountId" gorm:"column:AccountId"`
	WatermarkImageUrl         string        `json:"WatermarkImageUrl" gorm:"column:WatermarkImageUrl"`
	CoverImageUrl             string        `json:"CoverImageUrl" gorm:"column:CoverImageUrl"`
	PreviewVideoId            int64         `json:"PreviewVideoId" gorm:"column:PreviewVideoId"`
	ReservationText           string        `json:"ReservationText" gorm:"column:ReservationText"`
	IsReplayAutoOnlineEnable  int32         `json:"IsReplayAutoOnlineEnable" gorm:"column:IsReplayAutoOnlineEnable"`
	ShareIconUrlDefault       string        `json:"ShareIconUrlDefault" gorm:"column:ShareIconUrlDefault"`
	PageLimitType             string        `json:"PageLimitType" gorm:"column:PageLimitType"`
	PreviewVideoVidDefault    string        `json:"PreviewVideoVidDefault" gorm:"column:PreviewVideoVidDefault"`
	Name                      string        `json:"Name" gorm:"column:Name"`
	IsHeaderImageEnable       int32         `json:"IsHeaderImageEnable" gorm:"column:IsHeaderImageEnable"`
	IsPreviewPromptEnable     int32         `json:"IsPreviewPromptEnable" gorm:"column:IsPreviewPromptEnable"`
	InteractionColor          string        `json:"InteractionColor" gorm:"column:InteractionColor"`
	SourceSubtitleLanguage    string        `json:"SourceSubtitleLanguage" gorm:"column:SourceSubtitleLanguage"`
	IsThumbUpEnable           int32         `json:"IsThumbUpEnable" gorm:"column:IsThumbUpEnable"`
	PlayerTopType             []interface{} `json:"PlayerTopType" gorm:"column:PlayerTopType"`
	IsCommentTranslateEnable  int32         `json:"IsCommentTranslateEnable" gorm:"column:IsCommentTranslateEnable"`
	PreviewPrompt             string        `json:"PreviewPrompt" gorm:"column:PreviewPrompt"`
	LiveTime                  int64         `json:"LiveTime" gorm:"column:LiveTime"`
	PreviewVideoVid           string        `json:"PreviewVideoVid" gorm:"column:PreviewVideoVid"`
	PreviewVideoCoverImage    string        `json:"PreviewVideoCoverImage" gorm:"column:PreviewVideoCoverImage"`
	IsMobileBackImageEnable   int32         `json:"IsMobileBackImageEnable" gorm:"column:IsMobileBackImageEnable"`
	FontColor                 string        `json:"FontColor" gorm:"column:FontColor"`
	HeaderImageUrl            string        `json:"HeaderImageUrl" gorm:"column:HeaderImageUrl"`
	ThumbUpUrlDefault         string        `json:"ThumbUpUrlDefault" gorm:"column:ThumbUpUrlDefault"`
	IsTimeShift               int32         `json:"IsTimeShift" gorm:"column:IsTimeShift"`
	IsReservationEnable       int32         `json:"IsReservationEnable" gorm:"column:IsReservationEnable"`
	SiteTags                  []interface{} `json:"SiteTags" gorm:"column:SiteTags"`
	ColorThemeIndex           string        `json:"ColorThemeIndex" gorm:"column:ColorThemeIndex"`
	IsCountdownEnable         int32         `json:"IsCountdownEnable" gorm:"column:IsCountdownEnable"`
	OpenLiveAvextractorTask   int64         `json:"OpenLiveAvextractorTask" gorm:"column:OpenLiveAvextractorTask"`
	IsPCHeaderImageEnable     int32         `json:"IsPCHeaderImageEnable" gorm:"column:IsPCHeaderImageEnable"`
	IsPlayerTopEnable         int32         `json:"IsPlayerTopEnable" gorm:"column:IsPlayerTopEnable"`
	PcBackImageUrl            string        `json:"PcBackImageUrl" gorm:"column:PcBackImageUrl"`
	Announcement              string        `json:"Announcement" gorm:"column:Announcement"`
	DefaultSubtitleLanguage   string        `json:"DefaultSubtitleLanguage" gorm:"column:DefaultSubtitleLanguage"`
	PreviewVideoUrl           string        `json:"PreviewVideoUrl" gorm:"column:PreviewVideoUrl"`
	ActivityId                int64         `json:"ActivityId" gorm:"column:ActivityId"`
	IsPageLimitEnable         int32         `json:"IsPageLimitEnable" gorm:"column:IsPageLimitEnable"`
	IsPreviewVideoEnable      int32         `json:"IsPreviewVideoEnable" gorm:"column:IsPreviewVideoEnable"`
	MobileBackImageUrlDefault string        `json:"MobileBackImageUrlDefault" gorm:"column:MobileBackImageUrlDefault"`
	ThumbUpUrl                string        `json:"ThumbUpUrl" gorm:"column:ThumbUpUrl"`
	MobileBackImageUrl        string        `json:"MobileBackImageUrl" gorm:"column:MobileBackImageUrl"`
	LanguageType              []interface{} `json:"LanguageType" gorm:"column:LanguageType"`
	IsPcBackImageEnable       int32         `json:"IsPcBackImageEnable" gorm:"column:IsPcBackImageEnable"`
	PcBackImageUrlDefault     string        `json:"PcBackImageUrlDefault" gorm:"column:PcBackImageUrlDefault"`
	IsShareIconEnable         int32         `json:"IsShareIconEnable" gorm:"column:IsShareIconEnable"`
	PreviewVideoMediaName     string        `json:"PreviewVideoMediaName" gorm:"column:PreviewVideoMediaName"`
	AutoStartType             int64         `json:"AutoStartType" gorm:"column:AutoStartType"`
	PCHeaderImageUrl          string        `json:"PCHeaderImageUrl" gorm:"column:PCHeaderImageUrl"`
	IsCoverImageEnable        int32         `json:"IsCoverImageEnable" gorm:"column:IsCoverImageEnable"`
	IsAnnouncementEnable      int32         `json:"IsAnnouncementEnable" gorm:"column:IsAnnouncementEnable"`
	IsPeopleCountEnable       int32         `json:"IsPeopleCountEnable" gorm:"column:IsPeopleCountEnable"`
	ReservationTime           int64         `json:"ReservationTime" gorm:"column:ReservationTime"`
	IsAutoStartEnable         int32         `json:"IsAutoStartEnable" gorm:"column:IsAutoStartEnable"`
	IsWatermarkImageEnable    int32         `json:"IsWatermarkImageEnable" gorm:"column:IsWatermarkImageEnable"`
	PreviewVideoReviewStatus  int32         `json:"PreviewVideoReviewStatus" gorm:"column:PreviewVideoReviewStatus"`
	ShareIconUrl              string        `json:"ShareIconUrl" gorm:"column:ShareIconUrl"`
	BackgroundColor           string        `json:"BackgroundColor" gorm:"column:BackgroundColor"`
}

func (instance *Instance) GetActivityBasicConfig(data *GetActivityBasicConfigRequest) (*GetActivityBasicConfigResponse, error) {
	d := request.Data{
		Action: "GetActivityBasicConfigAPI",
	}
	bindQuery(&d, *data)
	var res GetActivityBasicConfigResponse
	err := instance.get(&d, &res)
	return &res, err
}
